package com.example.time_manage_web.service.impl;

import com.example.time_manage_web.mapper.CountMapper;
import com.example.time_manage_web.pojo.Count;
import com.example.time_manage_web.service.CountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: time_manage_web
 * @BelongsPackage: com.example.time_manage_web.service.impl
 * @Author: fox
 * @CreateTime: 2023-03-28  09:16
 * @Description: TODO
 * @Version: 1.0
 */
@Service("countService")
public class CountServiceImpl implements CountService {

    @Autowired
    private CountMapper countMapper;


    @Override
    public List<Count> querycount() {
        return this.countMapper.querycount();
    }

    @Override
    public int insert(Count count) {
        int a =this.countMapper.insertcount(count);
        return a;
    }
    @Override
    public int update(Count count){
        int a = this.countMapper.updatecount(count);
        return a;
    }

    @Override
    public int delete(Count count) {
        int a = this.countMapper.deletecount(count);
        return a;
    }
}
